/**
 * 
 */
package any.gwt.client.util;

import java.util.EventObject;

/**
 * TODO: Doc me
 * 
 * @author keke <keke@codehaus.org>
 * @version
 * @revision $Revision:$
 */
public class DispatchEvent extends EventObject {
    /**
     * 
     */
    private static final long serialVersionUID = 7482569403786946100L;
    private boolean           consumed         = false;
    private final Object      content;
    private final String      name;

    public DispatchEvent(final Object source, final Object content,
            final String name) {
        super(source);
        this.content = content;
        this.name = name;
    }

    public void consume() {
        consumed = true;
    }

    public Object getContent() {
        return content;
    }

    public String getName() {
        return name;
    }

    public boolean isConsumed() {
        return consumed;
    }

}
